@titan-card-header-height: 34px;

.titan-card {
  position: relative;
  box-shadow: 0 0 6px 0 rgba(54, 76, 101, 0.16);
  border-radius: 5px;
  background-color: #f2f3f5;

  .titan-card-header {
    display: flex;
    justify-content: space-between;
    height: @titan-card-header-height;

    .titan-card-header-left {
      flex: 1;
      width: 0;
      height: 100%;
      display: flex;

      .scroll-button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        color: @color-primary-5;
        cursor: pointer;
      }

      .titan-card-header__wrap {
        flex: 1;
        width: 0;
        display: flex;
        overflow: hidden;
        scroll-behavior: smooth;
      }
    }

    .titan-card-header-right {
      display: flex;
      align-items: center;
    }

    &.is-single {
      border: none;

      .titan-card-header__item {
        cursor: default;
        background-color: transparent;
      }
    }
  }

  .titan-card-header__item {
    flex-shrink: 0;
    width: fit-content;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: #8d9db6;
    font-size: 14px;
    padding: 0 10px;
    cursor: pointer;
    border-bottom: 1px solid #f2f3f5;
    display: flex;
    justify-content: center;
    align-items: center;

    &.active {
      color: @color-primary-5;
      background-color: #ffffff
    }
  }


  &-content {
    padding: 10px;
    background-color: #ffffff;
    width: 100%;
    height: calc(100% - @titan-card-header-height);
  }
}

